import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import register.User1;

public class registerTest1 {
    @Test
    public void registerTest1() {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("register1.xml");
        User1 bean = (User1) applicationContext.getBean("user1");
        System.out.println(bean.register());
    }
}
